//
//  RBStockOrderInvoiceInfoVC.m
//  zhongzhenglu
//
//  Created by XL on 2022/8/18.
//

#import "RBStockOrderInvoiceInfoVC.h"
#import "RBDefine.h"
#import "UIView+RBAdd.h"
#import "UIScrollView+RBAdd.h"
#import <Masonry.h>
#import "RBThemeConfig.h"
#import <UIColor+YYAdd.h>
#import <UIView+YYAdd.h>
#import "RBPager.h"
#import "RanTool.h"

@interface RBStockOrderInvoiceInfoVC ()

@property(nonatomic, strong)UIScrollView *scrollView;

@end

@implementation RBStockOrderInvoiceInfoVC

#pragma mark - Lifecycle

- (void)viewDidLoad
{
    [super viewDidLoad];
    [self setup];
    [self fillData];
}

#pragma mark - Private

- (void)setup
{
    self.title = @"开票信息";
    self.view.backgroundColor = [RBThemeConfig bgGrayColor];
}

- (void)fillData
{
    [self.scrollView rbSetContentWidth:kRBMainScreenWidth];
    [self.scrollView addView:({
        UIView *view = UIView.new;
        view.backgroundColor = UIColor.whiteColor;
        [view rbSetCornerRadius:Zoom(8)];
        
        [view view_addView:[RanTool labelWithFontSize:Zoom(16) weight:2 color:[RBThemeConfig textBlackColor] align:0 text:@"订单开票信息"] withHeight:Zoom(60) width:CGFLOAT_MIN top:0 bottom:0 left:Zoom(13) right:Zoom(13) centerX:0];
        [view view_addView:({
            UIView *view = UIView.new;
            view.backgroundColor = [RBThemeConfig lineGrayColor];
            view;
        }) withHeight:1 width:CGFLOAT_MIN top:0 bottom:0 left:Zoom(13) right:Zoom(13) centerX:0];
        [view view_addView:({
            UILabel *view = [RanTool labelWithFontSize:Zoom(14) weight:0 color:[RBThemeConfig textBlackColor] align:0 text:@"公司名称：黑龙江龙采科技有限公司"];
            view.numberOfLines = 0;
            view;
        }) withHeight:CGFLOAT_MIN width:CGFLOAT_MIN top:Zoom(20) bottom:0 left:Zoom(13) right:Zoom(13) centerX:0];
        [view view_addView:({
            UILabel *view = [RanTool labelWithFontSize:Zoom(14) weight:0 color:[RBThemeConfig textBlackColor] align:0 text:@"纳税人识别号：60716431235432541"];
            view.numberOfLines = 0;
            view;
        }) withHeight:CGFLOAT_MIN width:CGFLOAT_MIN top:Zoom(26) bottom:Zoom(165) left:Zoom(13) right:Zoom(13) centerX:0];
        view;
    }) withHeight:CGFLOAT_MIN width:CGFLOAT_MIN top:Zoom(10) bottom:Zoom(10) left:Zoom(15) right:Zoom(15) centerX:0];
}

#pragma mark - Network

#pragma mark - Event

#pragma mark - Setter

#pragma mark - Getter

- (UIScrollView *)scrollView
{
    if (!_scrollView)
    {
        self.scrollView = ({
            UIScrollView *view = UIScrollView.new;
            [self.view addSubview:view];
            [view mas_makeConstraints:^(MASConstraintMaker *make) {
                make.edges.mas_equalTo(0);
            }];
            view;
        });
    }
    return _scrollView;
}

@end
